package cn.acac.yygh.user.service;

import cn.acac.yygh.model.user.UserInfo;
import cn.acac.yygh.vo.user.LoginVo;
import cn.acac.yygh.vo.user.UserInfoQueryVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

public interface UserInfoService extends IService<UserInfo> {
    Map<String, Object> login(LoginVo loginVo);

    UserInfo findUserInfoByOpenid(String openid);

    UserInfo getUserInfo(Long userId);

    Page<UserInfo> findPageAll(Integer pageNum, Integer pageSize, UserInfoQueryVo userInfoQueryVo);

    void updateStatus(Long id, Integer status);

    Map<String, Object> showUserInfo(Long id);
}
